package com.bristua.mall.admin.user.controller;

import com.bristua.mall.admin.common.bean.Result;
import com.bristua.mall.admin.common.utils.HandleResultUtil;
import com.bristua.mall.admin.user.biz.QueryUsersBiz;
import com.bristua.mall.admin.user.model.condition.QueryUsersParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/2.
 */
@RestController
public class QueryUsersController {

    @Autowired
    private QueryUsersBiz queryUsersBiz;


    public Result queryUsers(@RequestBody QueryUsersParams queryUsersParams){
        return HandleResultUtil.querySuccessResult( queryUsersBiz.queryUserBiz(queryUsersParams));
    }
}
